package com.yuan.service;

import com.yuan.mapper.UserMapper;
import com.yuan.pojo.User;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;
    public User findById(String username){
        User user = userMapper.userById(username);
        return user;
    }
}
